package com.zk.mall.entity;

import java.io.Serializable;
import java.util.Date;

public class Order implements Serializable {
    private int orderId;//订单号
    private Goods goods; //商品号
    private User user;
    private Date orderTime;//下订单的时间

    public Order() {
    }

    public Order(int orderId) {
        this.orderId = orderId;
    }

    public Order(Goods goods, User user) {
        this.goods = goods;
        this.user = user;
    }
    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
}
